using System.Web.Security;
using SpiderMaster.AspNet.TradingSystem.DataAccessLayer;
using SpiderMaster.AspNet.TradingSystem.DataAccessLayer.MembersDataComponentTableAdapters;

namespace SpiderMaster.AspNet.TradingSystem
{
    public partial class MemberManagement
    {
        public partial class DB
        {
            public partial class Get
            {
                /// <summary> Gets the profile.
                /// </summary>
                /// <param name="UserName">Name of the user.</param>
                /// <returns></returns>
                public static MembersDataComponent.MembersRow Profile(string UserName)
                {
                    using (MembersDataAdapter db = new MembersDataAdapter())
                        return Helper.GetFirstRow(db.GetMemberByUsername(UserName, Membership.ApplicationName));
                }
            }
        }
    }
}